package com.ychs.lawyer.mapper;

import com.ychs.lawyer.DTO.RoleMenu;
import com.ychs.lawyer.bean.Menu;
import com.ychs.lawyer.bean.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: clh
 * @Date: 2024/08/05/15:43
 * @Description:
 */
@Mapper
public interface MenuMapper {
    List<Menu> getMenusByRoleId(String roleId);

    List<Menu> getMenu();

    int editMenu(Menu menu);

    int addMenu(Menu menu);

    int addMenu2(Menu menu);

    List<Integer> getMenuByRoleId(RoleMenu roleMenu);

    int delMenu(Integer menuId);

    int selectRoleId(Integer menuId);

    List<String> getPermsByRoleId(Integer roleId);
}
